import request from '@/utils/request'

export const homeInfo = () => {
  return request({
    url: '/api/recomment'
  })
}

export const DriSc = (data) => {
  return request({
    url: '/api/colrecomment',
    method: 'POST',
    data
  })
}

export const DriScList = (userId) => {
  return request({
    url: `/api/colrecomment/${userId}`,
    method: 'get'
  })
}

export const QxDriSc = (data) => {
  return request({
    url: `/api/colrecomment/${data.userId}/${data.recommentId}`,
    method: 'DELETE'
  })
}
